
using System;
using System.ComponentModel.DataAnnotations;
using Abp.Domain.Entities.Auditing;
using Yozeev.BusinessLogic;

namespace  Yozeev.BusinessLogic.Dtos
{
    public class TicketPriceEditDto
    {

        /// <summary>
        /// Id
        /// </summary>
        public Guid? Id { get; set; }



        /// <summary>
        /// TicketId
        /// </summary>
        public Guid TicketId { get; set; }



        /// <summary>
        /// IsEnabled
        /// </summary>
        public bool IsEnabled { get; set; }



        /// <summary>
        /// Sort
        /// </summary>
        public long Sort { get; set; }



        /// <summary>
        /// Price
        /// </summary>
        public decimal Price { get; set; }



        /// <summary>
        /// Discount
        /// </summary>
        public decimal Discount { get; set; }



        /// <summary>
        /// 退款折扣
        /// </summary>
        public decimal RDiscount { get; set; }



        /// <summary>
        /// UpperTime
        /// </summary>
        public DateTime UpperTime { get; set; }

        /// <summary>
        /// LowerTime
        /// </summary>
        public DateTime LowerTime { get; set; }



        /// <summary>
        /// Position
        /// </summary>
        public PositionEnum Position { get; set; }



        /// <summary>
        /// 价格名称
        /// </summary>
        public string TicketName { get; set; }


        public string LowerTimeStr { get; set; }
        public string UpperTimeStr { get; set; }
        public void SetTime()
        {
            if (!string.IsNullOrWhiteSpace(LowerTimeStr))
                LowerTime = DateTime.Parse(LowerTimeStr);

            if (!string.IsNullOrWhiteSpace(UpperTimeStr))
                UpperTime = DateTime.Parse(UpperTimeStr);
        }
        /// <summary>
        /// 仓位
        /// </summary>
        public WareHousePosition WarePosition { get; set; }
    }
}